/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.jdbc.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author GiangLT
 */
public class SubCpProduction {

    private String subCpName;
    private String operator;
    private String dateString;
    private Date date;
    private Integer mo6071;
    private Integer mt6071;
    private Integer mo6171;
    private Integer mt6171;
    private Integer mo6271;
    private Integer mt6271;
    private Integer mo6371;
    private Integer mt6371;
    private Integer mo6471;
    private Integer mt6471;
    private Integer mo6571;
    private Integer mt6571;
    private Integer mo6671;
    private Integer mt6671;
    private Integer mo6771;
    private Integer mt6771;

    public SubCpProduction() {
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getMo6071() {
        return mo6071;
    }

    public void setMo6071(Integer mo6071) {
        this.mo6071 = mo6071;
    }

    public Integer getMo6171() {
        return mo6171;
    }

    public void setMo6171(Integer mo6171) {
        this.mo6171 = mo6171;
    }

    public Integer getMo6271() {
        return mo6271;
    }

    public void setMo6271(Integer mo6271) {
        this.mo6271 = mo6271;
    }

    public Integer getMo6371() {
        return mo6371;
    }

    public void setMo6371(Integer mo6371) {
        this.mo6371 = mo6371;
    }

    public Integer getMo6471() {
        return mo6471;
    }

    public void setMo6471(Integer mo6471) {
        this.mo6471 = mo6471;
    }

    public Integer getMo6571() {
        return mo6571;
    }

    public void setMo6571(Integer mo6571) {
        this.mo6571 = mo6571;
    }

    public Integer getMo6671() {
        return mo6671;
    }

    public void setMo6671(Integer mo6671) {
        this.mo6671 = mo6671;
    }

    public Integer getMo6771() {
        return mo6771;
    }

    public void setMo6771(Integer mo6771) {
        this.mo6771 = mo6771;
    }

    public Integer getMt6071() {
        return mt6071;
    }

    public void setMt6071(Integer mt6071) {
        this.mt6071 = mt6071;
    }

    public Integer getMt6171() {
        return mt6171;
    }

    public void setMt6171(Integer mt6171) {
        this.mt6171 = mt6171;
    }

    public Integer getMt6271() {
        return mt6271;
    }

    public void setMt6271(Integer mt6271) {
        this.mt6271 = mt6271;
    }

    public Integer getMt6371() {
        return mt6371;
    }

    public void setMt6371(Integer mt6371) {
        this.mt6371 = mt6371;
    }

    public Integer getMt6471() {
        return mt6471;
    }

    public void setMt6471(Integer mt6471) {
        this.mt6471 = mt6471;
    }

    public Integer getMt6571() {
        return mt6571;
    }

    public void setMt6571(Integer mt6571) {
        this.mt6571 = mt6571;
    }

    public Integer getMt6671() {
        return mt6671;
    }

    public void setMt6671(Integer mt6671) {
        this.mt6671 = mt6671;
    }

    public Integer getMt6771() {
        return mt6771;
    }

    public void setMt6771(Integer mt6771) {
        this.mt6771 = mt6771;
    }

    public String getSubCpName() {
        return subCpName;
    }

    public void setSubCpName(String subCpName) {
        this.subCpName = subCpName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDateString() {
        if (dateString == null || dateString.isEmpty()) {
            SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
            return dateFormat.format(date);
        }
        return dateString;
    }

    public void setDateString(String dateString) {
        this.dateString = dateString;
    }
}
